##
## $Id: Makefile.am,v 1.1 2008/01/08 18:27:29 joel Exp $
##

MANAGERS = all

rtems_tests_PROGRAMS = sp40.exe
sp40_exe_SOURCES = init.c system.h

dist_rtems_tests_DATA = sp40.scn

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am

sp40_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)

AM_CPPFLAGS += -I$(top_srcdir)/../support/include

LINK_OBJS = $(sp40_exe_OBJECTS) $(sp40_exe_LDADD)
LINK_LIBS = $(sp40_exe_LDLIBS)

sp40.exe$(EXEEXT): $(sp40_exe_OBJECTS) $(sp40_exe_DEPENDENCIES)
	@rm -f sp40.exe$(EXEEXT)
	$(make-exe)

include $(top_srcdir)/../automake/local.am
